Skip to content

Fix signatures of Accept, Decline and TentativelyAccept actions - #53

Merged
Vincent Biret (baywet) merged 6 commits into
masterfrom
zengin/accept-decline-test
Jan 18, 2021
Merged

Vincent Biret (baywet) merged 6 commits into
masterfrom
zengin/accept-decline-test

Conversation

@zengin

Copy link
Copy Markdown
Contributor

Previous XSLT rule was replacing accept, decline and tentativelyAccept actions with a parameter reordering. The reason for the rule was to keep the code backwards compatible.

Our long term solution should be to have a parameters object which can extend freely with nullable properties.

The change I propose in this PR is changing the "replace" rule with an "add" rule, which adds the backwards compatible signature. Since I remove the replace rule, the original signatures from metadata gets copied as is.

See type summary comparisons between the following two files.
typeSummary_accept_decline_base.txt
typeSummary_accept_decline_new.txt


Old state:

Through backwards compatible "replace" rules from XSLT

accept(Comment, SendResponse)
decline(Comment, SendResponse)
tentativelyAccept(Comment, SendResponse)

No compatible signatures with the actual metadata and docs


New state:

Through backwards compatible "add" rules from XSLT

accept(Comment, SendResponse)
decline(Comment, SendResponse)
tentativelyAccept(Comment, SendResponse)

By keeping signatures from original metadata

accept(SendResponse, Comment)
decline(ProposedNewTime, SendResponse, Comment)
tentativelyAccept(ProposedNewTime, SendResponse, Comment)

I have updated the test input XML file to match the actual metadata and updated output XML by running the new transform.

Fixes #21

Fixes 3 C# Beta and 3 C# V1 Raptor tests. Vincent Biret (@baywet), I think this will fix some Java tests too.

@baywet Vincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mustafa Zengin (@zengin) this is why this thing was always complaining! Thanks for looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XSLT transform drops ProposedNewTime parameter

3 participants